public class Point3D extends Point
swigCMemOwn
Modifier | Constructor and Description |
---|---|
|
Point3D() |
|
Point3D(double xv,
double yv,
double zv) |
protected |
Point3D(long cPtr,
boolean cMemoryOwn) |
|
Point3D(Point3D other) |
Modifier and Type | Method and Description |
---|---|
double |
angleTo(Point3D other)
determines the angle between a vector to this point from the origin and a vector to the other point.
|
Point |
copy() |
Point3D |
crossProduct(Point3D other)
Cross product of this point with the another point.
|
void |
delete() |
long |
dimension() |
Point3D |
directionVector(Point3D other) |
double |
dotProduct(Point3D other) |
protected void |
finalize() |
protected static long |
getCPtr(Point3D obj) |
Point3D |
getPerpendicular()
Get a unit perpendicular from this point (treating it as a vector):
|
double |
getX() |
double |
getY() |
double |
getZ() |
double |
length() |
double |
lengthSq() |
Point3D |
minus(Point3D other) |
void |
normalize() |
void |
setX(double value) |
void |
setY(double value) |
void |
setZ(double value) |
double |
signedAngleTo(Point3D other)
determines the signed angle between a vector to this point from the origin and a vector to the other point.
|
protected Point3D(long cPtr, boolean cMemoryOwn)
public Point3D()
public Point3D(double xv, double yv, double zv)
public Point3D(Point3D other)
protected static long getCPtr(Point3D obj)
public void setX(double value)
public double getX()
public void setY(double value)
public double getY()
public void setZ(double value)
public double getZ()
public double dotProduct(Point3D other)
public double angleTo(Point3D other)
determines the angle between a vector to this point from the origin and a vector to the other point.
The angle is unsigned: the results of this call will always be between 0 and M_PI
public double signedAngleTo(Point3D other)
determines the signed angle between a vector to this point from the origin and a vector to the other point.
The results of this call will be between 0 and M_2_PI
public Point3D directionVector(Point3D other)
public Point3D crossProduct(Point3D other)
Cross product of this point with the another point.
The order is important here The result is 'this' cross with 'other' not (other x this)
public Point3D getPerpendicular()
Get a unit perpendicular from this point (treating it as a vector):